package com.czk.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * 服务降级的类，优先级比较低，如果指定了降级方法或全局异常时会走前面两个降级的方法
 *
 * @Author:ChenZhangKun
 * @Date: 2020/12/19 17:00
 */
@Component
public class PaymentFallbackService implements OrderHystrixOrderService {
    @Override
    public String payment_ok(Integer id) {
        return "PaymentFallbackService payment_ok 的降级方法 o(╥﹏╥)o";
    }

    @Override
    public String payment_fail(Integer id) {
        return "aymentFallbackService payment_fail 的降级方法 o(╥﹏╥)o";
    }
}
